package zzc.imsystem.ims.Servlet;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import zzc.imsystem.ims.Entity.im_user;
import zzc.imsystem.ims.dao.userDao;


@Service
public class LoginService {

    @Autowired
    private userDao userMapper;


    /**
     * 登录模块业务层
     * @param im_id
     * @param im_password
     * @return
     */
    public Object loginService(String im_id, String im_password) {
        im_user imUser = new im_user();
        imUser.setIm_id(im_id);
        imUser.setIm_password(im_password);

        Object flag = userMapper.selectUserByID(imUser);
        return flag;
    }


}
